package com.lht.cozyCloud.bee.service.impl;

import com.lht.cozyCloud.bee.domain.MessageRecord;
import com.lht.cozyCloud.bee.mapper.MessageRecordMapper;
import com.lht.cozyCloud.bee.service.MessageRecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author lht
 * @version 1.0
 * @description: TODO
 * @date 2025/1/6 14:43
 */

@Service
public class MessageRecordServiceImpl implements MessageRecordService {

    @Autowired
    private MessageRecordMapper messageRecordMapper;

    @Override
    public List<MessageRecord> selectMessageRecordByType(String type) {
        return this.messageRecordMapper.selectMessageRecordByType(type);
    }

    @Override
    public MessageRecord selectMessageRecordById(Long recordId) {
        return this.messageRecordMapper.selectRecordById(recordId);
    }

    @Override
    public List<MessageRecord> selectMessageRecordByIds(Long[] recordIds) {
        return this.messageRecordMapper.selectRecordByIds(recordIds);
    }

    @Override
    public List<MessageRecord> selectMessageRecordList(MessageRecord record) {
        return this.messageRecordMapper.selectRecordList(record);
    }

    @Override
    public int insertRecord(MessageRecord record) {
        return this.messageRecordMapper.insertRecord(record);
    }

    @Override
    public int updateRecord(MessageRecord record) {
        return this.messageRecordMapper.updateRecord(record);
    }

    @Override
    public void deleteRecordById(Long recordId) {
        this.messageRecordMapper.deleteRecordById(recordId);
    }

    @Override
    public void deleteRecordByIds(Long[] recordIds) {
        int i = this.messageRecordMapper.deleteRecordByIds(recordIds);
    }
}
